﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace RotaractProjectCalendar.Models
{
    public class Club
    {
        public int Id { get; set; }
        
        [Display(Name = "Nazwa klubu")]
        [Required(ErrorMessage = "Club name is required!")]
        [StringLength(30, ErrorMessage = "Club name cannnot be longer than 30 characters.")]
        public string ClubTitle { get; set; }
        
        [Display(Name = "Logo klubu")]
        [DataType(DataType.Upload)]
        [StringLength(500)]
        public string Logo { get; set; }
        
        [Display(Name = "Adres profilu FB")]
        [DataType(DataType.Url)]
        [StringLength(100, ErrorMessage = "Facebook address cannnot be longer than 100 characters. Please contact with administrator.")]
        public string FbProfileAddress { get; set; }
        
        [Display(Name = "Adres strony www")]
        [DataType(DataType.Url)]
        [StringLength(50, ErrorMessage = "Website address cannnot be longer than 50 characters. Please contact with administrator.")]
        public string WwwWebsiteAddress { get; set; }
        
        [Display(Name = "Adres e-mail")]
        [DataType(DataType.EmailAddress)]
        [StringLength(30, ErrorMessage = "Email address cannnot be longer than 30 characters. Please contact with the administrator.")]
        public string ClubEmailAddress { get; set; }

        public virtual ICollection<Coordinator> Coordinators { get; set; }
        public virtual ICollection<Project> Projects { get; set; }
    }
}